from chatserver.chatclient.client import Client


if __name__ == '__main__':
    c = Client("127.0.0.1", 9999)
    account = 320822007
    password = "159180"
    name = "test group"
    username = "snail"
    number = 371001360
    pic = "i am picture"
    img = "i am img"
    new_info = "i am 21 years old"
    new_password = "001360"
    c.register(username, password)
    c.login(account, password)
    c.logout(account)
    c.add_friend(number)
    c.del_friend(number)
    c.create_group(name)
    c.add_group(number)
    c.del_group(number)
    c.send_img(pic)
    c.show_friends()
    c.show_groups()
    c.search_friend(number)
    c.search_group(number)
    c.modify_info(new_info)
    c.modify_password(new_password)
    c.upload_img(img)
    c.send_msg("hello")

